<!DOCTYPE HTML>
<html>
<head>
  <meta charset="utf-8">
  
  <title>第 7 页 | Wentao&#39;s Blog</title>

  
  <meta name="author" content="wentao">
  

  

  

  <meta id="viewport" name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">

  

  <meta property="og:site_name" content="Wentao&#39;s Blog"/>

  
  <meta property="og:image" content="/favicon.ico"/>
  

  <link href="/favicon.ico" rel="icon">
  <link rel="alternate" href="/atom.xml" title="Wentao&#39;s Blog" type="application/atom+xml">
  <link rel="stylesheet" href="/css/style.css" media="screen" type="text/css">
</head>


<body>
<div class="blog">
  <div class="content">

    <header>
  <div class="site-branding">
    <h1 class="site-title">
      <a href="/">Wentao&#39;s Blog</a>
    </h1>
    <p class="site-description"></p>
  </div>
  <nav class="site-navigation">
    <ul>
      
        <li><a href="/">主页</a></li>
      
        <li><a href="/archives">归档</a></li>
      
    </ul>
  </nav>
</header>

    <main class="site-main posts-loop">
    
  <article>

  
    
    <h3 class="article-title"><a href="/2012/04/22/fix-vbox-mount/"><span>解决移动Vbox移动虚拟磁盘以后无法注册的问题</span></a></h3>
    
  

  <div class="article-top-meta">
    <span class="posted-on">
      <a href="/2012/04/22/fix-vbox-mount/" rel="bookmark">
        <time class="entry-date published" datetime="2012-04-22T03:54:00.000Z">
          2012-04-22
        </time>
      </a>
    </span>
  </div>


  

  <div class="article-content">
    <div class="entry">
      
        <p>发现时间机器的增量备份不是指单个文件,所以需要将Vbox的虚拟磁盘移出主硬盘.不然,每次的变化都要整个文件备份.太占地方了.而且也没有必要.</p>
<p>移动以后,发现无法注册.即使把之前的注册文件删了也不行.提示<code>uuid</code>冲突.</p>
<p>解决的办法也很简单 在VirtualBox-&gt;管理-&gt;虚拟介质管理 里面删掉以前的磁盘.就可以重新添加了.</p>

      
    </div>

  </div>

  <div class="article-footer">
    <div class="article-meta pull-left">

    
      

    <span class="post-categories">
      <i class="icon-categories"></i>
        <a href="/categories/Soft/">Soft</a>
    </span>
    

    
    

    <span class="post-tags">
      <i class="icon-tags"></i>
        <a href="/tags/vbox/">vbox</a>
    </span>
    

    </div>

    
    <div class="article-meta pull-right">
      <span>
        <i class="icon-comments"></i>
        <span>
          <a href="http://wentao.org/2012/04/22/fix-vbox-mount/#comment">评论</a>
        </span>
      </span>
    </div>
    
  </div>
</article>



  <article>

  
    
    <h3 class="article-title"><a href="/2012/03/29/Problme-with-publish-asp-dot-net/"><span>发布ASP.net网站时候遇到的几个问题</span></a></h3>
    
  

  <div class="article-top-meta">
    <span class="posted-on">
      <a href="/2012/03/29/Problme-with-publish-asp-dot-net/" rel="bookmark">
        <time class="entry-date published" datetime="2012-03-29T12:00:00.000Z">
          2012-03-29
        </time>
      </a>
    </span>
  </div>


  

  <div class="article-content">
    <div class="entry">
      
        <p>今天在发布一个网站的时候,遇到了一些问题:</p>
<ol>
<li>`xx is not allowed here because it does not extend class 'System.Web.UI.Page'. 出现该问题的原因是由于页面的namespace错误导致的.修改为和web项目一直的就可以了.</li>
<li>asp.net从2.0开始,默认是不允许从文本框中提交xml的,认为可能会引发安全问题.不过的确如此.但是是在不需要的时候.可以通过在web.confg里面加入
&lt;pre&gt;&lt;pages validateRequest=&quot;false&quot;/&gt;
&lt;/pre&gt;来解决.</li>
</ol>

      
    </div>

  </div>

  <div class="article-footer">
    <div class="article-meta pull-left">

    
      

    <span class="post-categories">
      <i class="icon-categories"></i>
        <a href="/categories/Dev/">Dev</a>
    </span>
    

    
    

    <span class="post-tags">
      <i class="icon-tags"></i>
        <a href="/tags/net/">.net</a>
    </span>
    

    </div>

    
    <div class="article-meta pull-right">
      <span>
        <i class="icon-comments"></i>
        <span>
          <a href="http://wentao.org/2012/03/29/Problme-with-publish-asp-dot-net/#comment">评论</a>
        </span>
      </span>
    </div>
    
  </div>
</article>



  <article>

  
    
    <h3 class="article-title"><a href="/2012/03/28/ACK/"><span>Ack</span></a></h3>
    
  

  <div class="article-top-meta">
    <span class="posted-on">
      <a href="/2012/03/28/ACK/" rel="bookmark">
        <time class="entry-date published" datetime="2012-03-28T13:28:00.000Z">
          2012-03-28
        </time>
      </a>
    </span>
  </div>


  

  <div class="article-content">
    <div class="entry">
      
        <h2>Ack</h2>
<p><code>Ack</code>是类似于grep的一个搜索工具,主要是面向程序员的.可以快速方便的从大量的代码中查找你需要的信息.默认不会去搜索<code>SCM</code>产生的文件.相对于</p>
<h2>优势</h2>
<ul>
<li>速度快</li>
<li>命令简单</li>
<li>支持正则</li>
<li>纯perl,跨平台.安装简单</li>
</ul>
<h2>安装</h2>
<p>安装的话很简单,机器只要安装了<code>perl</code>的话,简单的一个命令
&lt;pre&gt;cpan App:Ack
&lt;/pre&gt; 就可以搞定了. windwos下面需要安装</p>
<p><a href="http://strawberryperl.com/" target="_blank" rel="external">strawberryperl</a>,然后执行如上的命令就可以了.</p>
<p>Mac下面使用homebrew执行:
&lt;pre&gt;brew install ack
&lt;/pre&gt;</p>
<h2>语法</h2>
<p>可以参考<a href="http://betterthangrep.com/" target="_blank" rel="external">Ack</a>的语法介绍,很简单的.</p>
<p>&lt;pre&gt;ack --csharp todo -i -l
&lt;/pre&gt;</p>
<p>如上命令就可以将代码中包含todo的以列表的形式列出.很是方便快速.</p>

      
    </div>

  </div>

  <div class="article-footer">
    <div class="article-meta pull-left">

    
      

    <span class="post-categories">
      <i class="icon-categories"></i>
        <a href="/categories/Soft/">Soft</a>
    </span>
    

    
    

    <span class="post-tags">
      <i class="icon-tags"></i>
        <a href="/tags/perl-linux/">perl, linux</a>
    </span>
    

    </div>

    
    <div class="article-meta pull-right">
      <span>
        <i class="icon-comments"></i>
        <span>
          <a href="http://wentao.org/2012/03/28/ACK/#comment">评论</a>
        </span>
      </span>
    </div>
    
  </div>
</article>



  <article>

  
    
    <h3 class="article-title"><a href="/2012/03/26/fix-vim-e492/"><span>解决E492不是编辑器命令 ^M</span></a></h3>
    
  

  <div class="article-top-meta">
    <span class="posted-on">
      <a href="/2012/03/26/fix-vim-e492/" rel="bookmark">
        <time class="entry-date published" datetime="2012-03-26T05:51:00.000Z">
          2012-03-26
        </time>
      </a>
    </span>
  </div>


  

  <div class="article-content">
    <div class="entry">
      
        <p><code>vim</code>的插件有时由于是windows下编写的原因,所以.在unix下面无法打开.报 <code>E492不是编辑器命令 ^M</code> 解决办法很简单 打开以后,执行:</p>
<p>&lt;pre&gt;:set ff=unix
:wq
&lt;/pre&gt;</p>
<p>这样就可以解决了.其他编辑文件的话,建议使用<code>FencView</code>.可以自动侦测文件的编码.省去不少时间.</p>

      
    </div>

  </div>

  <div class="article-footer">
    <div class="article-meta pull-left">

    
      

    <span class="post-categories">
      <i class="icon-categories"></i>
        <a href="/categories/Soft/">Soft</a>
    </span>
    

    
    

    <span class="post-tags">
      <i class="icon-tags"></i>
        <a href="/tags/vim/">vim</a>
    </span>
    

    </div>

    
    <div class="article-meta pull-right">
      <span>
        <i class="icon-comments"></i>
        <span>
          <a href="http://wentao.org/2012/03/26/fix-vim-e492/#comment">评论</a>
        </span>
      </span>
    </div>
    
  </div>
</article>



  <article>

  
    
    <h3 class="article-title"><a href="/2012/02/26/config-spring4side-on-mac/"><span>mac下面配置springside4的开发环境</span></a></h3>
    
  

  <div class="article-top-meta">
    <span class="posted-on">
      <a href="/2012/02/26/config-spring4side-on-mac/" rel="bookmark">
        <time class="entry-date published" datetime="2012-02-26T02:37:00.000Z">
          2012-02-26
        </time>
      </a>
    </span>
  </div>


  

  <div class="article-content">
    <div class="entry">
      
        <p>spring是一个很强悍的框架.早已脱离了最早的orm.国内有人做了一个springside的框架,其实就是将spring和一些工具整合起来,做的示例.挺方便的.</p>
<h4>前期准备</h4>
<ul>
<li>JDK</li>
<li>MAVEN</li>
<li>eclipse</li>
<li>M2Eclipse</li>
<li>git</li>
</ul>
<p>由于装了homebrew,所以安装maven很方便<br>
<code>brew install maven</code><br>
同样安装git<br>
<code>brew install git</code><br>
至于eclipse和M2eclipse的安装.就靠自己吧…</p>
<h5>获取代码</h5>
<p>springside4已经迁移到github上面.所以,可以通过如下方式得到最新的代码:<br>
<code>git clone https://github.com/springside/springside4.git</code></p>
<h5>配置环境</h5>
<p>由于使用了maven,此处的环境配置应该很简单.不必为各种jar包冲突所烦恼.安装上m2e以后,就可以将项目导入到eclipse里面了.但是有一个问题,刚导入的项目,由于jar包的缺失.无法通过编译. 此处需要作如下处理<br>
分别进入</p>
<p>&lt;pre&gt;cd modules/core
mvn install
cd ..
cd extension
mvn install
cd ..
cd parent
mvn install
cd ..
cd ..
cd examples/mini-service
mvn install
cd ..
cd mini-web
mvn install
cd ..
cd showcase
mvn install
&lt;/pre&gt;</p>
<p>这样就基本就可以通过编译了.但是在完成以上步骤以后.还是有可能出现如下的几个错误提示</p>
<p>&lt;pre&gt;Project configuration is not up-to-date with pom.xml. Run project configuration update
&lt;/pre&gt;</p>
<p>第一个解决办法使用quick fix.然后就没有问题了.其实就是更新了项目的配置信息.</p>
<p>为什么会有这样的问题,原因是由于m2e和maven之间的配置不一样导致的.可以通过如下两个插件其中任意一个完成.</p>
<ul>
<li><a href="http://mojo.codehaus.org/build-helper-maven-plugin/" target="_blank" rel="external">Build Helper Maven Plugin</a></li>
<li><a href="https://apt-m2e.googlecode.com/" target="_blank" rel="external">apt-m2e</a></li>
</ul>
<p>至此就可以将springside4的开发环境配置完成.</p>

      
    </div>

  </div>

  <div class="article-footer">
    <div class="article-meta pull-left">

    
      

    <span class="post-categories">
      <i class="icon-categories"></i>
        <a href="/categories/Dev/">Dev</a>
    </span>
    

    
    

    <span class="post-tags">
      <i class="icon-tags"></i>
        <a href="/tags/java-spring/">java,spring</a>
    </span>
    

    </div>

    
    <div class="article-meta pull-right">
      <span>
        <i class="icon-comments"></i>
        <span>
          <a href="http://wentao.org/2012/02/26/config-spring4side-on-mac/#comment">评论</a>
        </span>
      </span>
    </div>
    
  </div>
</article>




<nav class="pagination">
  
  <a href="/page/6/" class="pagination-prev">上一页</a>
  
  
  <a href="/page/8/" class="pagination-next">下一页</a>
  
</nav>
    </main>

    <footer class="site-footer">
  <p class="site-info">
    Proudly powered by <a href="https://hexo.io/" target="_blank">Hexo</a> and
    Theme by <a href="https://github.com/CodeDaraW/Hacker" target="_blank">Hacker</a>
    </br>
    
    &copy; 2016 wentao
    
  </p>
</footer>
    
  </div>
</div>
</body>
</html>